<div class="container" style="margin-top: 40px;">
<form method="post" action="" enctype="multipart/form-data" style="padding:0 60px;">
<div class="r1d">
<h5><?echo empty($data)?"新增":"修改"?>财务问答-<?php echo $cate_name;?>:</h5>
</div>
<input type="hidden" name="type" value="<?=$params['type']?>">
<input type="hidden" name="cate" value="<?=$params['cate']?>">
问题:&nbsp;&nbsp;<input type="text" name="title" value="<?=Util_Util::html_char_replace($data['title'])?>" style="width: 400px;"><br>
<span class="ltips">回答:</span>&nbsp;&nbsp;<textarea name="content" style="width:700px;height:400px;visibility:hidden;display:inline-block;"><?=Util_Util::html_char_replace($data['content'])?></textarea>
<div class="submitBar">
<button type="submit"  class="qaSubBtn" value=" "></button>
</div>
</form>
</div>
<?php $this->script_block_begin();?>
<script language="javascript" type="text/javascript">
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="content"]', {
            resizeType : 1,
            allowPreviewEmoticons : false,
            allowImageUpload : true,
            uploadJson : '<?=Util_BaseUrls::image_upload()?>',
            allowFileManager : false,
            items : [
                'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat','wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'image', 'link']
        });
    });
</script>
<?php $this->script_block_end();?>